*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px 40px;
}
a {
  color: #b22222;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover, a:focus {
  color: #7b0000;
  outline: none;
}

#main_wrapper {
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

header {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  flex-wrap: wrap;
  border-bottom: 2px solid #f8b500;
}
#logo_title {
  display: flex;
  align-items: center;
  gap: 15px;
}
#logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
#logo_title h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: #b22222;
  line-height: 1.1;
}
#logo_title h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #7b0000;
  letter-spacing: 1px;
  margin-top: 4px;
}

nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
nav a {
  font-weight: 600;
  font-size: 1.15rem;
  padding: 6px 0;
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 50%;
  background-color: #b22222;
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}
nav a:hover::after, nav a:focus::after {
  width: 100%;
  left: 0;
}

/* Banner */
#banner_image {
  position: relative;
  width: 100%;
  height: 280px;
  background-image: url('../images/banner_italian_soda.jpg');
  background-position: center center;
  background-size: cover;
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 0 60px rgb(0 0 0 / 0.25);
  margin-bottom: 30px;
  overflow: hidden;
}
#banner_description {
  position: absolute;
  bottom: 18px;
  left: 24px;
  background-color: rgba(255 255 255 / 0.75);
  backdrop-filter: saturate(180%) blur(8px);
  padding: 10px 18px;
  border-radius: 12px;
  max-width: 300px;
  font-weight: 600;
  font-size: 1rem;
  color: #444;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}
#banner_description a {
  background-color: #b22222;
  color: white;
  padding: 7px 14px;
  border-radius: 20px;
  box-shadow: 0 3px 6px rgb(183 15 15 / 0.8);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
}
#banner_description a:hover, #banner_description a:focus {
  background-color: #7b0000;
}
#banner_description a img {
  width: 14px;
  height: auto;
  filter: brightness(100%) invert(100%);
}

/* Main content */
main {
  display: flex;
  gap: 28px;
  padding: 0 30px 30px;
  flex-wrap: wrap;
  justify-content: center;
}
article {
  flex: 1 1 600px;
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  text-align: justify;
}
article h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 18px;
  color: #b22222;
  display: flex;
  align-items: center;
  gap: 12px;
}
article h1 img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}
aside {
  flex: 0 0 220px;
  background: #f9f0eb;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
aside img {
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: filter 0.3s;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}
aside img:hover, aside img:focus {
  filter: drop-shadow(0 0 10px #b22222);
  outline: none;
}

/* Footer */
footer {
  background: #f4f0e9;
  padding: 30px 30px 40px;
  margin-top: auto;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 0 #fff;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer_section {
  flex: 1 1 280px;
  margin: 12px;
}
.footer_section h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #b22222;
  margin-bottom: 16px;
  border-bottom: 2px solid #b22222;
  padding-bottom: 6px;
}
.footer_section p, .footer_section ul {
  font-size: 0.9rem;
  color: #555;
  list-style: none;
}
#my_pictures img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 3px 9px rgba(178, 34, 34, 0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}
#my_pictures img:hover, #my_pictures img:focus {
  transform: scale(1.1);
  outline: none;
}
#my_friends ul {
  column-count: 2;
  column-gap: 20px;
  padding-left: 0;
}
#my_friends li {
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
  color: #7b0000;
  cursor: pointer;
  font-weight: 600;
}
#my_friends li::before {
  content: '🍹';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  line-height: 1;
}
#my_friends li a {
  color: inherit;
}

/* Responsive - Mobile */
@media (max-width: 600px) {
  #main_wrapper {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  header {
    padding: 15px 20px;
  }
  nav {
    width: 100%;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
  }

  #banner_image {
    height: 200px;
  }
  main {
    flex-direction: column;
    padding: 0 15px 20px;
  }
  article {
    flex: initial;
    width: 100%;
    margin-bottom: 20px;
  }
  aside {
    width: 100%;
    padding: 15px;
    gap: 15px;
  }
  footer {
    flex-direction: column;
    padding: 20px 15px 30px;
  }
  .footer_section {
    margin: 15px 0;
    width: 100%;
  }
  #my_friends ul {
    column-count: 1;
  }
}
